<html> 
<head>

<style>
.editing { 
    border: 2px solid red; 
    padding: 12px; 
    font-size: 24px; 
}
.cell { 
    padding: 12px; 
    font-size: 24px;
    height: 48px; 
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>

<script>

function editingTest() {
    moveSelectionForwardByLineCommand();    
    moveSelectionBackwardBySentenceCommand();    
    moveSelectionForwardByLineCommand();    
    moveSelectionBackwardBySentenceCommand();    
    moveSelectionForwardByLineCommand();    
    moveSelectionBackwardBySentenceCommand();    
    moveSelectionForwardByLineCommand();    
    moveSelectionBackwardBySentenceCommand();    
    moveSelectionForwardByLineCommand();    
    moveSelectionBackwardBySentenceCommand();    
    moveSelectionForwardByLineCommand();    
    moveSelectionBackwardBySentenceCommand();    
    moveSelectionForwardByLineCommand();    
    moveSelectionBackwardBySentenceCommand();    
    moveSelectionForwardByLineCommand();    
    moveSelectionBackwardBySentenceCommand();    
}

</script>

<!-- Note that this tests the fix for this bug:
<rdar://problem/5174862> Crash resulting from DeprecatedString::insert()
-->

<title>Editing Test</title> 
</head> 
<body>
<div contenteditable id="test" class="editing">
&#149; <b>This is some linked text</b>

<script>
runEditingTest();
</script>

</body>
</html>
